//import java.util.Arrays;
import java.util.*;
public class Paixu {
    /*public static void main(String[] args) {
        int[] arr = {31, 79, 152, 7, 64, 197, 66, 101, 30, 38, 2, 51, 144, 135, 47, 179, 14, 23, 75, 6, 181, 20, 183, 199, 96, 108, 98, 188, 84, 166, 1, 113, 106, 87, 93, 39, 154, 146, 154, 27, 44, 96, 37, 174, 127, 131, 79, 181, 115, 195, 133, 132, 81, 169, 17, 114, 29, 50, 128, 156, 199, 132, 180, 85, 194, 37, 5, 195, 139, 108, 26, 178, 107, 22, 75, 130, 71, 28, 119, 43, 114, 180, 4, 102, 109, 12, 110, 58, 69, 173, 66, 185, 43, 3, 11, 151, 41, 145, 166, 121};
        Arrays.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }*/
    public static void main(String[] args) {
        int n;
        Scanner reader = new Scanner(System.in);
        n = reader.nextInt();
        int[] arr=new int[n];
        for (int i = 0; i < n; i++) {
            int t = reader.nextInt();
            arr[i]=t;

        /*
            for (int x = 0; x < arr.length - 1; x++) {
                for (int y = 0; y < arr.length - 1 - x; y++) {
                    if (arr[y] > arr[y + 1]) {
                        int m = arr[y];
                        arr[y] = arr[y + 1];
                        arr[y + 1] = m;
                    }
                }*/Arrays.sort(arr);
            }
        for(int k=0;k<arr.length;k++){
            System.out.print(arr[k]);
        }
        }
    }
    /*public static void main(String[] args){
        int n=5;
        System.out.println(n);
        int[] arr={7,4,3,8,9};
        for(int k=0;k<arr.length;k++){
            System.out.print(arr[k]);}
        System.out.println();
        for (int a=0;a<arr.length-1;a++){
            for(int b=0;b<arr.length-1-a;b++) //所需比较个数越来越小
            {
                if(arr[b]>=arr[b+1]){
                    int x=arr[b+1];
                    arr[b+1]=arr[b];
                    arr[b]=x;//大值和小值交换
                }
            }
            //遍历已排序数组
        }for (int i=0;i<arr.length;i++){
            System.out.print(arr[i]);
        }
    }*/
